import request from '@/utils/request'

// 查询上墙列表
export function listWall(query) {
  return request({
    url: '/xiangqin/wall/list',
    method: 'get',
    params: query
  })
}

// 查询上墙详细
export function getWall(id) {
  return request({
    url: '/xiangqin/wall/' + id,
    method: 'get'
  })
}

// 新增上墙
export function addWall(data) {
  return request({
    url: '/xiangqin/wall',
    method: 'post',
    data: data
  })
}

// 修改上墙
export function updateWall(data) {
  return request({
    url: '/xiangqin/wall',
    method: 'put',
    data: data
  })
}

// 删除上墙
export function delWall(id) {
  return request({
    url: '/xiangqin/wall/' + id,
    method: 'delete'
  })
}
